//
//  ThemeHeaderCollectionReusableView.m
//  IconMaster
//
//  Created by mac on 2017/7/25.
//  Copyright © 2017年 yangweiwei. All rights reserved.
//

#import "ThemeHeaderCollectionReusableView.h"

@implementation ThemeHeaderCollectionReusableView
- (void)creatHeaderView:(NSArray *)arr{


//    NSArray *scrollerImgArr = arr;
////    BHInfiniteScrollView *iniftScroll = [BHInfiniteScrollView infiniteScrollViewWithFrame:CGRectMake(10, 0, KWidth - 20, self.bounds.size.height-50) Delegate:self ImagesArray:scrollerImgArr];
//    BHInfiniteScrollView *iniftScroll = [BHInfiniteScrollView infiniteScrollViewWithFrame:CGRectMake(10, 0, KWidth - 20, self.bounds.size.height-50) Delegate:self ImagesArray:scrollerImgArr PlageHolderImage:nil]; 
//    iniftScroll.infiniteLoop = YES;
//    iniftScroll.layer.cornerRadius = 5;
//    iniftScroll.layer.masksToBounds = YES;
//    iniftScroll.scrollDirection = BHInfiniteScrollViewScrollDirectionHorizontal;
//    iniftScroll.pageControlAlignmentH = BHInfiniteScrollViewPageControlAlignHorizontalCenter;
//    [self addSubview:iniftScroll];
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 0, self.width - 40, self.bounds.size.height-50)];
    imageView.layer.cornerRadius = 5.0;
    imageView.layer.masksToBounds = YES;
    imageView.contentMode = UIViewContentModeScaleAspectFill;
    [self addSubview:imageView];
    [imageView sd_setImageWithURL:[NSURL URLWithString:arr[0]]];

}
@end
